<?php

require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  static protected $contactsLoaded = false;
 
  static public function registerContacts()
  {
    if (self::$contactsLoaded)
    {
      return;
    }
 
    set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path());
    require_once sfConfig::get('sf_lib_dir').'/vendor/contacts/Svetlozar.NET/init.php';
    self::$contactsLoaded = true;
  }
  
  static public function registerTemplate()
  {
    require_once sfConfig::get('sf_lib_dir').'/vendor/templating/lib/sfTemplateAutoloader.php';
    sfTemplateAutoloader::register();
  }
  
  public function setup()
  {
    $this->enablePlugins('sfDoctrinePlugin');
    $this->enablePlugins('sfDoctrineGuardPlugin');
    $this->enablePlugins('sfThumbnailPlugin');
    $this->enablePlugins('sfFormExtraPlugin');
  }
}
